/*
 * 文件名：PushAdminRunble.java	 
 * 时     间：下午3:46:33
 * 作     者：Administrator       
 * 版     权： 2012-2022 湖南智软网络科技, 公司保留所有权利.
 * 联     系：http://www.073586.com/
 */
package com.local.manager.push;

import com.cz073586.tools.util.Log4jUtil;
import com.local.manager.middleware.MiddlewareManager;
import com.local.model.AdminPayBill;
import com.qianhai.common.utils.UUIDGenerateUtil;

/**
 * 类描述:这里是类描述
 * 
 * @ClassName: PushAdminRunble
 * @author Administrator
 * @date 2015年9月30日 下午3:46:33
 */
public class PushAdminRunble implements Runnable
{
	
	@SuppressWarnings("unused")
	private static Log4jUtil log = Log4jUtil.getLog4j(PushAdminRunble.class);
	
	private AdminPayBill adminPayBill;
	private String exchangeId;
	private String cameNo;
	private String middleIp;
	
	public PushAdminRunble(AdminPayBill adminPayBill, String exchangeId,
			String cameNo,String middleIp)
	{
		super();
		this.adminPayBill = adminPayBill;
		this.exchangeId = exchangeId;
		this.cameNo = cameNo;
		this.middleIp = middleIp;
	}
	
	@Override
	public void run()
	{
		try
		{
			adminPayBill.setUuid(UUIDGenerateUtil.generate());
			adminPayBill.setExchangeNo(exchangeId);
			MiddlewareManager.instance().sendInstruct(cameNo, "1",
					"192.168.1.115",middleIp);
		} catch (Throwable t)
		{
			
		}
		
	}
	
}
